package com.wx.mall.operate.dto;

import com.wx.mall.common.validator.FlagValidator;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class AdDto {

    @ApiModelProperty("当前页")
    @NotNull(message = "不能为空")
    private Integer pageNum;

    @ApiModelProperty("页数")
    @NotNull(message = "不能为空")
    private Integer pageSize;

    @ApiModelProperty(value = "广告名称")
    private String name;

    @ApiModelProperty(value = "广告位置")
    private String position;

    @FlagValidator(value = {"1","2","3"},message = "状态不正确")
    @ApiModelProperty(value = "到期时间:1为一天内,2为3天内,3为1周内")
    private int endTimeType;

    @ApiModelProperty("排序方式:0为广告名称,1为广告位置")
    @FlagValidator(value = {"0","1"},message = "状态不正确")
    private int sort;


}
